package com.fadadianqi.mall.orders.model;

import com.fadadianqi.commons.BaseObject;

import java.sql.Timestamp;
import java.util.Date;

public class Orders extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = 6724461096769175796L;

    public static final int STATUS_PROCESSING = 0x000001; // 交易中
    public static final int STATUS_DELIVERING = 0x000002; // 配送中...
    public static final int STATUS_PAYMENT = 0x000003; //等待付款
    public static final int STATUS_FAILD = 0x000004; //交易失败
    public static final int STATUS_SUCCESS = 0x000006; //交易完成

    /**
     *
     */
    private String customerId;

    /**
     * 订单状态
     */
    private int status;

    private Double soldPrice; // 最终成交

    private Timestamp addTime;

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Double getSoldPrice() {
        return soldPrice;
    }

    public void setSoldPrice(Double soldPrice) {
        this.soldPrice = soldPrice;
    }
}
